﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Aribaccio;
using Aribaccio.Datum;
using BDPAutodetect.Models;

namespace BDPAutodetect.DataService
{
    /// <summary>
    /// 基础数据业务处理接口
    /// </summary>
    public interface IDataServiceBasic : IDataServiceBase
    {
        /// <summary>
        /// 插入队列存储数据
        /// </summary>
        void EnqueueStoreData(string argDataSql);

        /// <summary>
        /// 用户登录
        /// </summary>
        /// <param name="argLoginDto">用户传输模型对象</param>
        /// <returns></returns>
        ResultModel<T> UserLogin<T>(MLoginDto argLoginDto) where T : TBasicUser;

        /// <summary>
        /// 加密方法
        /// </summary>
        /// <param name="argEncryptString">待加密的明文</param>
        /// <returns>加密密文字符串</returns>
        string Encrypt(string argEncryptString);

        /// <summary>
        /// 解密方法
        /// </summary>
        /// <param name="argDecryptString">待解密的密文</param>
        /// <returns>解密明文字符串</returns>
        string Decrypt(string argDecryptString);
    }
}
